package com.rockcent.common;

import org.springframework.context.annotation.Bean;
import org.springframework.web.filter.CharacterEncodingFilter;

/**
 * Created by HK on 16/8/16.
 * 基础配置文件
 */
public class BaseConfig {
    // 系统各种环境
    public static final String LOCAL = "local";
    public static final String DEV = "dev";
    public static final String UAT="uat";
    public static final String PROD ="prod";

    @Bean
    public CharacterEncodingFilter characterEncodingFilter() {
        CharacterEncodingFilter filter = new CharacterEncodingFilter();
        filter.setEncoding("UTF-8");
        filter.setForceEncoding(true);
        return filter;
    }
}
